package com.niuwa.p2p.dao.message;

import java.util.List;
import java.util.Map;

import com.niuwa.p2p.dao.MyBatisDao;
import com.niuwa.p2p.entity.message.MsgTemplate;

@MyBatisDao
public interface MsgTemplateDao {
    int deleteByPrimaryKey(String tempNo);

    int insert(MsgTemplate record);

    int insertSelective(MsgTemplate record);

    MsgTemplate selectByPrimaryKey(String tempNo);

    int updateByPrimaryKeySelective(MsgTemplate record);

    int updateByPrimaryKey(MsgTemplate record);
    void truncate();
    void addMessageTemplateBatch(List<MsgTemplate> templates);
    List<MsgTemplate> getMessageTemplateList(Map<String, Object> paras);
    int getMessageTemplateCount(Map<String, Object> paras);
}